package com.tentact.controller;

import com.tentact.Service.EmpService;
import com.tentact.Service.LoginService;

import com.tentact.pojo.T_User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping(value = "/lo")
public class login {
    @Autowired
    private LoginService loginService;
    @RequestMapping(value = "/gin" ,method = RequestMethod.GET)
    @ResponseBody
    public Integer  loginController(String userName,String passWord){
        System.out.println("userName = " + userName);
//        In tUsers = empService.empsearch(userName);
        Integer tUser = loginService.tUsersearch(userName,passWord);
        return tUser;
    }

}
